package com.songsong.myblog2.mapper;

import com.songsong.myblog2.domain.Archives;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component(value = "archivesMapper")
public interface ArchivesMapper {
    /*
     * 归档mapper
     * */
    /*判断该归档是否存在*/
    public String selectArchive(String archiveName);

    /*添加归档*/
    public void addArchives(String archiveName);

    /*更改归档数量*/
    public void updateArchiveNum(String archiveName);

    /*查询所有的归档*/
    public List<Archives> getAllArchives();
}
